package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.SystemMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @NTLX data 2020 08 22
 */
public interface SystemMenuMapper {

    List selectMenuListUsed();

    List selectMenuList();

    Integer selectMenuCount();

    Integer selectSortByPid(int index);

    Integer addMenu(@Param("menu") SystemMenu menu);

    int selectLevelById(int symId);

    int selectParentById(int id);

    int editMenu(@Param("menu") SystemMenu menu);

    SystemMenu selectMenuById(Integer symId);

    SystemMenu selectMenuByPidAndSort(@Param("pid") Integer pid,@Param("sort") int i);
}
